package com.transfiguro.datamodel.csmodels;

import java.util.Set;

public class Usings {
    private Set<String> usings;
    private double conversionTime;
    private static final String USING = "using";

    public Set<String> getUsings() {
        return usings;
    }

    public void setUsings(final Set<String> usings) {
        this.usings = usings;
    }

    @Override
    public String toString() {
        StringBuilder result = new StringBuilder();
        if (usings != null) {
            for (final String using : usings) {
                result.append(USING).append(' ').append(using).append(';').append('\n');
            }
        }
        return result.toString();
    }

    public double getConversionTime() {
        return conversionTime;
    }

    public void setConversionTime(final double conversionTime) {
        this.conversionTime = conversionTime;
    }
}
